import App from './App'

/* 全局挂载请求库 */
import GraceRequest from '@/Grace6/js/request.js'
uni.gRequest = GraceRequest;
import config from '@/config.js'
// import CryptoJS from "@/node_modules/crypto-js/crypto-js.js"
import lg from '@/Grace6/js/lg.js'
import comm from '@/Grace6/js/comm.js'
import boya from '@/Grace6/js/boya.js'

// #ifdef H5
import uniwebview from '@/Grace6/js/uni.webview.1.5.2.js'
// #endif

// #ifndef VUE3
import Vue from 'vue'

Vue.config.productionTip = false
Vue.prototype.apiUrl=config.apiUrl
Vue.prototype.$lg = lg;
Vue.prototype.$boya = boya;
Vue.prototype.$public_config = config;
Vue.prototype.$comm = comm;
Vue.prototype.$uimg = config.uimg;
Vue.prototype.$upload_url = config.upload_url;

App.mpType = 'app'
const app = new Vue({
    ...App
})

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif